package com.qqtech.qquan.im.model;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class ImMessage extends BaseDomain{
	/**"chatType":"消息类型,包括Chat(单聊),GroupChat(群聊)",
	 * "messageId": "消息的唯一标识符",
	 * "conversationId": "所属会话的唯一标识符",
	 * "from": "发送方",
	 * "to": "接收方",
	 * "timestamp": "时间戳"
	 */
	private java.lang.String chatType;
	private java.lang.String messageId;
	private java.lang.String conversationId;
	private java.lang.String from;
	private java.lang.String to;
	private java.lang.Long timestamp;
	private ImMessageBody body;
	public java.lang.String getChatType() {
		return chatType;
	}

	public void setChatType(java.lang.String chatType) {
		this.chatType = chatType;
	}

	public java.lang.String getMessageId() {
		return messageId;
	}

	public void setMessageId(java.lang.String messageId) {
		this.messageId = messageId;
	}

	public java.lang.String getConversationId() {
		return conversationId;
	}

	public void setConversationId(java.lang.String conversationId) {
		this.conversationId = conversationId;
	}

	public java.lang.String getFrom() {
		return from;
	}

	public void setFrom(java.lang.String from) {
		this.from = from;
	}

	public java.lang.String getTo() {
		return to;
	}

	public void setTo(java.lang.String to) {
		this.to = to;
	}

	public java.lang.Long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(java.lang.Long timestamp) {
		this.timestamp = timestamp;
	}

	public ImMessageBody getBody() {
		return body;
	}

	public void setBody(ImMessageBody body) {
		this.body = body;
	}

	public ImMessage(){
	}

	public ImMessage( java.lang.String messageId ){
		this.messageId = messageId;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}

